<?php 
//$this->layout()->title = "Bienvenue sur notre site web";
$this->layout()->subTitle = "Catalogues de nos matériels disponibles";
?>

<?php
$nbMateriel = count($this->materiels);
$i=0;
foreach($this->materiels as $materiel) {
	//print_r($val);
	$url = $this->url(array('module'=>'location','controller'=>'materiel-informatique','action'=>'info','materiel'=>$materiel['id']));
	echo "<table border='0' width='100%'><tr>
				<td width='103' align='left'><img src='" . $this->baseUrl() . "/../data/location/images/" . $materiel['image1'] . "'
				 width='100' height='100' border='0'></td>
				<td valign='top'><a href='" . $url . "'>" . $materiel['title'] . "</a> 
				<br/> <b>Réf : m" . $materiel['id'] . "</b>
				<br/> <b>" . $materiel['day_price'] . " &#8364; par jour</b>
				<br/> <b>" . $materiel['month_price'] . " &#8364; par mois</b>
				<br/> <b>" . $materiel['year_price'] . " &#8364; par an</b>
				<br /> " . $materiel['description'] . "</td>
		  </tr></table>";
		echo "<br />&nbsp;<br />";
	
}
?>

